package xcu.lxj.nettychat.chat.domain.vo.response;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Author XinJian Lei
 * @Date 2024/9/27 19:30
 * @Version 1.0
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WSBaseResp<T> {

    /**
     * ws推送给前端的消息
     * @see xcu.lxj.nettychat.chat.domain.enums.WSRespTypeEnum
     */
    private Integer type;

    /**
     * 消息 的 T  WSRespTypeEnum.getDataClass
     */
    private T data;
}

